//
//  HKNoticeModel.m
//  HKTimeKitApp
//
//  Created by huzhaoke1 on 2023/5/11.
//

#import "HKNoticeModel.h"
#import "HKRequestDefine.h"
#import <MJExtension/MJExtension.h>

@implementation HKNoticeModel

+ (NSDictionary *)mj_replacedKeyFromPropertyName {
    return @{@"modelId" : @"id"};
}

- (NSString *)showImageName {
    NSString *imageName = @"questionTips";
    switch (self.type) {
        case 1:
            imageName = @"questionTips";
            break;
        case 2:
            imageName = @"inviteImage";
            break;
        case 3:
            imageName = @"questionTips";
            break;
        case 4:
            imageName = @"dateImage";
            break;
        default:
            break;
    }
    return imageName;
}

- (NSString *)currentUrl {
    NSString *url;
    if (self.type == 1) {
        url = [NSString stringWithFormat:@"%@%@",HKMessageOneUrl, @(self.modelId)];
    } else if (self.type == 2) {
        url = HKMessagefortesterUrl;
    } else if (self.type == 3) {
        url = [NSString stringWithFormat:@"%@%@",HKMessageThreeUrl, @(self.messageId)];
    }
    return url;
}

@end
